package com.cj.gw;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class GwMain {

   /* @Bean
    public RouteLocator routeLocator(RouteLocatorBuilder builder) {
        return builder.routes()
                .route(r ->r.path("/v1/**")
                        .filters(f->f.stripPrefix(1))
                .uri("http://localhost:8080"))
                .build();
    }*/

    public static void main(String[] agrs){
        SpringApplication.run(GwMain.class,agrs);
    }
}
